package com.ruoyi.web.controller.mail;


import cn.hutool.extra.mail.MailAccount;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MailConfig {
    @ConfigurationProperties(prefix = "mail")
    @Bean
    public MailAccount mailAccount() {
        // 配置通过application.yml注入
        return new MailAccount();
    }
}
